#include "IndexedGeometry.h"
#include "limits.h"
IndexedGeometry::IndexedGeometry(void)
	:m_MaxIndex(0),m_MinIndex(USHRT_MAX),m_VertexCount(0)
{
}

IndexedGeometry::~IndexedGeometry(void)
{
}

void IndexedGeometry::CheckIndex(int index){
	if (index > m_MaxIndex)
		m_MaxIndex = index;
	if ( index < m_MinIndex)
		m_MinIndex = index;
}

int IndexedGeometry::GetMaxIndex(){
	return m_MaxIndex;
}

int IndexedGeometry::GetMinIndex(){
	return m_MinIndex;
}

int IndexedGeometry::GetVertexCount(){
	return m_VertexCount;
}

void IndexedGeometry::AddIndex(int index){
	CheckIndex(index);
	m_VertexCount++;
}